From a6ef1241cfdfb813a081c95c99cf88a98b4b6e3a Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 23 Sep 2002 20:02:40 +0000 Subject: [PATCH] Set endianness before marching on. --- psp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/psp.c b/psp.c index 85b6a4898..4c59e66fc 100644 --- a/psp.c +++ b/psp.c @@ -73,6 +73,11 @@ psp_fread_double(FILE *fp) { unsigned char buf[8]; unsigned char sbuf[8]; + + if (!endianness_tested) { + test_endianness(); + } + psp_fread(buf, 1, 8, psp_file_in); if (i_am_little_endian) { return *(double *) buf; -- 2.30.2